
<?php if(!empty($datas['comment_list']) && is_array($datas['comment_list'])){ ?>
<div class="article-comment-list-title">
  <h3>最新评论</h3>
</div>
<?php foreach($datas['comment_list'] as $value){ ?>
<dl>
  <dt><span class="thumb"><a href="<?php echo url('member/Snshome/index', array('mid'=>$value['comment_member_id']));?>" target="_blank"> 
  	<?php if(empty($value['member_avatar'])){?>
  		<img src="__UPLOAD_PATH__/shop/common/default_user_portrait.gif">
  	<?php }else{ ?>
  		<img src="<?php echo $value['member_avatar'];?>" alt="<?php echo $value['member_name'];?>"/>
    <?php } ?>
  </a></span></dt>
  <dd>
    <p class="comment-user"><a href="<?php echo url('member/Snshome/index', array('mid'=>$value['comment_member_id']));?>" target="_blank"> <?php echo $value['member_name'];?></a><em>发表于<?php echo date('Y-m-d H:i:s',$value['comment_time']);?></em>
    </p>
    <p class="comment-quote-list">
    <?php if(!empty($value['comment_quote'])) { ?>
    <?php $comment_quote_array = explode(',', $value['comment_quote']);?>
    <?php for($i = 0,$j = count($comment_quote_array); $i < $j; $i++) { ?>
    <?php echo '<div class="comment-quote-item">';?>
    <?php } ?>
    <?php $i = 1;?>
    <?php foreach($comment_quote_array as $comment_quote_id) {?>
    <?php if(isset($datas['comment_quote_list'][$comment_quote_id])) { ?>
    <p>
    <span class="comment-quote-member"><?php echo $datas['comment_quote_list'][$comment_quote_id]['member_name'];?><i><?php echo $i;?></i></span>
    <span class="comment-quote-message"><?php echo $datas['comment_quote_list'][$comment_quote_id]['comment_message'];?></span>
    <span class="quote"><a nctype="comment_quote" comment_id="<?php echo $datas['comment_quote_list'][$comment_quote_id]['comment_id'];?>" href="javascript:void(0)" >回复</a></span>
    </p>
    <?php } else { ?>
    <p>
    <span class="comment-quote-member"></span>
    <span class="comment-quote-message">已删除</span>
    </p>
    <?php } ?>
    </div>
    <?php $i++; ?>
    <?php } ?>
    <?php } ?>
    </p>
    <p class="comment-content"><?php echo $value['comment_message'];?></p>
    <p class="commnet-date"> 
    <a nctype="comment_up" comment_id="<?php echo $value['comment_id'];?>" href="javascript:void(0)" class="up">顶<span>[<em><?php echo $value['comment_up'];?></em>]</span></a>
    <a nctype="comment_quote" comment_id="<?php echo $value['comment_id'];?>" href="javascript:void(0)" class="quote">回复</a>
    <?php if($value['comment_member_id'] == session('member_id')) { ?>
    <a nctype="comment_drop" comment_id="<?php echo $value['comment_id'];?>" href="javascript:void(0)" class="del">删除</a>
    <?php } ?>
    </p>
    </dd>
</dl>
<?php } ?>
<div id="comment_pagination" class="pagination"><?php echo $datas['show_page'];?></div>
<?php } ?>
